package com.example.chessbattleplatform.web.chess_rooms.Pojo.Enum;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.annotation.IEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;

//更新类别
@Getter
@AllArgsConstructor
public enum UpdateCategory implements IEnum<String> {
    //更新数据
    UPDATE_DATA("UPDATE_DATA"),

    //删除数据
    DELETION_DATA("DELETION_DATA"),

    //添加数据
    ADD_DATA("ADD_DATA"),

    //无变化
    NO_CHANGE("NO_CHANGE");

    @EnumValue
    private final String message;

    @Override
    public String getValue() {
        return this.getMessage();
    }

    @Override
    public String toString() {
        return message;
    }
}
